﻿@model IEnumerable<HouseAgencySite.Models.Files>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
      @Html.ActionLink("新增", "Create", null, new{ @class="btn btn-primary" })
</p>
<table class="table table-bordered">

    <tr class="btn-success">
        <th>
            @Html.DisplayNameFor(model => model.ResourceID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Url)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsCover)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateUserID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateUserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ModifyTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ModifyUserID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ModifyUserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsDelete)
        </th>
        <th>操作</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ResourceID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Url)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsCover)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateUserID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateUserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModifyTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModifyUserID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModifyUserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsDelete)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Guid }) |
            @Html.ActionLink("Details", "Details", new { id=item.Guid }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Guid })
        </td>
    </tr>
}

</table>
